package ace.tool.generate.code.impl.resolver.ui.model.bo;

import ace.tool.generate.code.impl.resolver.ui.model.dto.UiClassFileInfo;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author caspar
 * @date 2023/11/17 10:27
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UiMockServerApiClassInfo {
  /**
   * 实体模型id
   */
  private String entityModelId;

  private ResponseClassInfo responseClassInfo;

  /**
   * 类属性
   */
  private UiClassFileInfo info;

  private String adminApiConfigClassName;
  private String adminApiConfigClassFullName;

  /**
   * apiConfig 的路径
   */
  private String apiConfigFullPath;

  private String modelRemark;

  private List<UiMockServerApiFieldInfo> fields;

  public String getResponseClassName() {
    return this.responseClassInfo.getInfo().getClassName();
  }

  public String getResponseClassFullName() {
    return this.responseClassInfo.getInfo().getClassFullName();
  }
}
